<template>
  <div class="container">
    <div class="title">
      <hr class="hr" />
      <div class="title-text">学车流程</div>
    </div>
    <div class="title-des">
      <div>驾考宝典整合学车全流程，驾考宝典为用户提供全方位学车服务</div>
    </div>
    <div class="process">
      <div v-for="item in obj" class="items">
        <div class="item">
          <div class="ico">
            <div class="icon">
              <Icon :type="item.icon" />
            </div>
          </div>
          <div class="tit">
            {{ item.title }}
          </div>
          <div class="des">
            {{ item.des }}
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import Icon from "../components/Icon.vue";
const obj = [
  {
    icon: "car",
    title: "找驾校",
    des: "口碑好的驾校",
  },
  {
    icon: "pen",
    title: "科目一",
    des: "驾驶员理论考试",
  },
  {
    icon: "lt",
    title: "科目二",
    des: "场地驾驶技能考试科目",
  },
  {
    icon: "fxp",
    title: "科目三",
    des: "机动车驾驶人道路考试",
  },
  {
    icon: "note",
    title: "科目四",
    des: "安全文明驾驶常识考试",
  },
  {
    icon: "id",
    title: "拿本",
    des: "开心拿本,安全驾驶",
  },
];
</script>

<style scoped>
.container {
  margin-bottom: 100px;
}

.item {
  margin: 0 auto;
}

.ico {
  border: 1px solid rgb(185, 185, 185);
  border-radius: 50%;
  font-size: 56px;
  width: 120px;
  height: 120px;
  position: relative;
  margin-bottom: 20px;
}

.ico:hover {
  cursor: pointer;
  background-color: rgb(0, 208, 255);
  color: white;
}

.tit:hover {
  cursor: pointer;
  color: rgb(0, 208, 255);
}

.icon {
  position: absolute;
  width: 120px;
  left: 30px;
  top: 20px;
  margin: 0 auto;
}

.tit {
  font-size: 24px;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 10px;
}

.des {
  width: fit-content;
  margin: 0 auto;
  color: rgb(151, 151, 151);
}

.process {
  height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.items {
  width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-des {
  width: 100%;
  margin-bottom: 40px;
}

.title-des div {
  width: fit-content;
  margin: 0 auto;
  color: rgb(98, 97, 97);
}

.hr {
  width: 90%;
  height: 2px;
  border: none;
  border-top: 1px dotted #e9e9e9;
}

.title {
  text-align: center;
  position: relative;
  width: 100%;
  display: inline-block;
  margin-top: -20px;
  line-height: 41px;
  padding: 0 45px;
  background-color: #fff;
  font-size: 30px;
  margin-bottom: 50px;
}

.title-text {
  width: fit-content;
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
}
</style>
